package org.jeecg.modules.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 三方管理
 * @Author: jeecg-boot
 * @Date: 2023-03-08
 * @Version: V1.0
 */
@Data
@TableName("sys_docking")
@Accessors(chain = true)
@EqualsAndHashCode()
@ApiModel(value = "sys_docking对象", description = "三方管理")
public class SysDocking implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 名称
     */
    @Excel(name = "名称", width = 15)
    @ApiModelProperty(value = "名称")
    private String name;
    /**
     * 编码
     */
    @Excel(name = "编码", width = 15)
    @ApiModelProperty(value = "编码")
    private String code;
    /**
     * Token
     */
    @Excel(name = "Token", width = 15)
    @ApiModelProperty(value = "Token")
    private String token;
    /**
     * 是否可用
     */
    @Excel(name = "是否可用", width = 15)
    @ApiModelProperty(value = "是否可用")
    private Integer isUse;

    /**
     * key
     */
    @Excel(name = "key", width = 15)
    @ApiModelProperty(value = "key")
    private String keyText;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "删除状态")
    @TableLogic
    private Integer delFlag;
}
